package com.smiier.skin.net;

import java.util.ArrayList;

import android.content.Context;
import cn.o.app.io.INoProguard;
import cn.o.app.json.JsonDate;
import cn.o.app.net.NetTask;

import com.smiier.skin.net.TreatmentProjectDetailTask.TreatmentProjectDetailRequest;
import com.smiier.skin.net.TreatmentProjectDetailTask.TreatmentProjectDetailResponse;
import com.smiier.skin.net.entity.Comment;
import com.smiier.skin.net.entity.User;
import com.smiier.skin.util.GlobalSettings;

/*
 * 治疗项目详情
 */
public class TreatmentProjectDetailTask extends
		NetTask<TreatmentProjectDetailRequest, TreatmentProjectDetailResponse> {
	public static class TreatmentProjectDetailRequest extends ORequest {
		public String id;
	}

	public static class TreatmentProjectDetailResponse implements INoProguard {
		public int id;
		public String hospital;
		public String name;
		public String category;
		public int original_price;
		public int discount_price;
		public int down_payment;
		public String basic_description;
		public String other_description;
		public String cuser;// 患者id
		public JsonDate ctime;
		public String url;
		public ArrayList<User> doctor_info;
		public ArrayList<Comment> comments;
	}

	@Override
	public void setContext(Context context) {
		super.setContext(context);
		mUrl = GlobalSettings.SERVER_URL_TREATMENT
				+ "Client/TreatmentProject/projectInfo";
		mRequestMethod = METHOD_GET;
	}

}
